import request from '@/utils/request'

// 查询post列表
export function listPost(query) {
    return request({
        url: '/blog/post/list',
        method: 'get',
        params: query
    })
}

// 查询post详细
export function getPost(id) {
    return request({
        url: '/blog/post/' + id,
        method: 'get'
    })
}

//获取markdown内容
export function getArticle(url){
    return request({
        url:url,
        method:'get'
    })
}
